package yf.mall.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;



import yf.mall.entity.MonthShareEntity;
import yf.mall.vo.MonthShareVo;

                    
/**
 * 月销实体
 * 表名 month_share
 *
 *
 *
 * @date Thu Oct 07 17:01:18 CST 2021
 */
@Data
public class MonthShareUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //用户ID
            @ExcelProperty("用户ID")
            private Long userId;
        
                        //数量
            @ExcelProperty("数量")
            private Integer quantity;
        
                        //相关订单
            @ExcelProperty("相关订单")
            private String orderNo;
        
                        //时间
            @ExcelProperty("时间")
            private Date time;
        
    
    public MonthShareUp() {

    }

    public MonthShareVo toVo() {

        MonthShareEntity entity = new MonthShareEntity();
            MonthShareVo vo = new MonthShareVo(entity);
                                    entity.setId(id);
            
                                    entity.setUserId(userId);
            
                                    entity.setQuantity(quantity);
            
                                    entity.setOrderNo(orderNo);
            
                                    entity.setTime(time);
            
        
        return  vo;
    }



}
